home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.12 Dec 96 / Async I⁄O Code / Sources / DS Original Sources / DSUtils.h < prev   
Encoding:
C/C++ Source or Header  |  1996-02-12  |  2.8 KB  |  121 lines  |  [TEXT/CWIE]

  1. /******************************************************************************
  2. **
  3. **  Project Name:    DropShell
  4. **     File Name:    DSUtils.h
  5. **
  6. **   Description:    header w/protos for DSUtils
  7. **
  8. *******************************************************************************
  9. **                       A U T H O R   I D E N T I T Y
  10. *******************************************************************************
  11. **
  12. **    Initials    Name
  13. **    --------    -----------------------------------------------
  14. **    SCS            Stephan Somogyi
  15. **    LDR            Leonard Rosenthol
  16. **
  17. *******************************************************************************
  18. **                      R E V I S I O N   H I S T O R Y
  19. *******************************************************************************
  20. **
  21. **      Date        Author    Description
  22. **    ---------    ------    ---------------------------------------------
  23. **    20 Feb 94    LDR        Exported new file system routines
  24. **    11 Dec 93    SCS        Universal Headers/UPPs (Phoenix 68k/PPC & PPCC)
  25. **                        Skipped System 6 compatible rev of DropShell source
  26. **    12/09/91    LDR        Added protos for new routines
  27. **    11/24/91    LDR        original version
  28. **
  29. ******************************************************************************/
  30.  
  31. #ifndef    __DSUTILS_H__
  32. #define    __DSUTILS_H__
  33.  
  34. #ifndef __TYPES__
  35.     #include <Types.h>
  36. #endif
  37.  
  38. #ifndef __MEMORY__
  39.     #include <Memory.h>
  40. #endif
  41.  
  42. #ifndef __QUICKDRAW__
  43.     #include <QuickDraw.h>
  44. #endif
  45.  
  46. #ifndef __OSUTILS__
  47.     #include <OSUtils.h>
  48. #endif
  49.  
  50. #ifndef __TOOLUTILS__
  51.     #include <ToolUtils.h>
  52. #endif
  53.  
  54. #ifndef __MENUS__
  55.     #include <Menus.h>
  56. #endif
  57.  
  58. #ifndef __PACKAGES__
  59.     #include <Packages.h>
  60. #endif
  61.  
  62. #ifndef __TRAPS__
  63.     #include <Traps.h>
  64. #endif
  65.  
  66. #ifndef __FILES__
  67.     #include <Files.h>
  68. #endif
  69.  
  70. #ifndef __RESOURCES__
  71.     #include <Resources.h>
  72. #endif
  73.  
  74. #ifndef __ERRORS__
  75.     #include <Errors.h>
  76. #endif
  77.  
  78. #ifndef __ALIASES__
  79.     #include <Aliases.h>
  80. #endif
  81.  
  82. #ifndef __PROCESSES__
  83.     #include <Processes.h>
  84. #endif
  85.  
  86. #ifndef __PPCTOOLBOX__
  87.     #include <PPCToolbox.h>
  88. #endif
  89.  
  90.  
  91. #include "DSGlobals.h"
  92.  
  93. #ifndef _FSAH_
  94. #define _FSAH_
  95. typedef FSSpecArrayPtr *FSSpecArrayHandle;       /* handle to array of FSSpecs */
  96. #endif
  97.  
  98.  
  99. void CenterAlert ( short theID );
  100. void ErrorAlert ( short stringListID, short stringIndexID, short errorID );
  101.  
  102. void GetMyAppName(Str255 appName);
  103. void GetAppFSSpec(FSSpec *appSpec);
  104.  
  105. OSErr ForceFinderUpdate(FSSpec *pFSS, Boolean flush);
  106. Boolean FSpIsBusy(FSSpecPtr theFile);
  107. Boolean    FSpIsFolder(FSSpecPtr theFSSpec);
  108. FSSpecArrayHandle    NewFSSpecList(void);
  109. void DisposeFSSpecList(FSSpecArrayHandle fsList);
  110. void AddToFSSpecList(FSSpec *fSpec, FSSpecArrayHandle fileList);
  111.  
  112. OSErr GetTargetFromSelf (AEAddressDesc *targetDesc);
  113. OSErr GetTargetFromSignature (OSType processSig, AEAddressDesc *targetDesc);
  114. OSErr GetTargetFromBrowser (Str255 promptStr, AEAddressDesc *targetDesc);
  115.  
  116. void _SendDocsToSelf (AEDescList *aliasList);
  117. void SendODOCToSelf (FSSpec *theFileSpec);
  118. void SendQuitToSelf (void);
  119.  
  120. #endif
  121.